/*
 *  Copyright (c) Skrumtious
 */
package com.skrumtious.backend.persistence;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * A tab for a user
 * 
 * @author Tony
 *
 */
@Entity
public class SkrumTab extends PersistenceObject implements Serializable {

	/**
	 * SUID
	 */
	private static final long serialVersionUID = -4672244385269983722L;
	
	/**
	 * Tab name
	 */
	@Column(name = "name")
	private String name;

	/**
	 * Skrum lists
	 */
	private SkrumList activeList
					, deactiveList;


	/**
	 * Order
	 */
	private int order;

	/**
	 * @param name
	 * @param order
	 * @param activeList
	 * @param deactiveList
	 */
	public SkrumTab(String name, int order, SkrumList activeList, SkrumList deactiveList) {
		super();
		this.name = name;		
		this.order = order;
		
		this.activeList = activeList;
		this.deactiveList = deactiveList;
	}

	/**
	 */
	public SkrumTab() {		
		this("", 0, new SkrumList(), new SkrumList());
	}
	
	/**
	 * @return the order
	 */
	public int getOrder() {
		return order;
	}
	
	/**
	 * @param order the order to set
	 */
	public void setOrder(int order) {
		this.order = order;
	}	
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the activeList
	 */
	public SkrumList getActiveList() {
		return activeList;
	}
	
	/**
	 * @return the deactiveList
	 */
	public SkrumList getDeactiveList() {
		return deactiveList;
	}
	
}
